Jump to content
Sign in to follow this  
epicmar

Save Event Error

Recommended Posts

Using FM 16.0.2 ProAdvanced (32bit), I've installed, registered gmanipulator demo, authenticated, and can pull calendar events successfully, but when I try to edit an existing calendar event or create a new one, I now get a "Failed to Save" error message popup. Interestingly, I was successfully editing and creating events on this same calendar last night but when I went back to it today, relaunched Filemaker, registered and authenticated once again, I am now getting these errors.

Failed to save the record: Error Encountered from Google
Message: Exception saving the record
Code: -400
Extended: Google.Apis.Requests.RequestError

I would appreciate any thoughts or suggestions on this, please.

 

EDIT: Relaunched everything a few hours later and I see it all seems to be working again. This strikes me as not very reliable but I would appreciate any insight into what the error means specifically. Thanks

Edited by epicmar

Share this post


Link to post
Share on other sites

Still have this problem, now with paid latest version. When it occurs, there seems to be nothing I can do to affect it, other than wait for it to start working again. Anyone have similar issue?

Share this post


Link to post
Share on other sites

Resolved: So what I thought was a random failure of PCGM_SaveRecord function which generated the stated error, but would often work fine later, is actually caused by bad data that Google did not like, which apparently got changed in the interim to something Google would accept. This made the SaveRecord function failure look random to me.

I guess I was expecting the PCGM_SetFieldValue( FieldName ; Value ; optType ) function to report an error on bad data, but it was not until the PCGM_SaveRecord that I would get the cryptic error from Google.

In the case of my script, the bad data was caused by PCGM_GetFieldValue( "ColorID" ; Events::ColorID ) from a calendar event that had no manual color selection (was left on default color) and apparently returns null, but when I turned right around and PCGM_SetFieldValue( "ColorID" ; Events::ColorID ) with the null color ID value, I would get the stated error. Changing the ColorID value to an assigned color number, 1 for example, fixes the error.

Share this post


Link to post
Share on other sites

FYI...

Valid ColorID:
1=Lavendar (Light Purple)
2=Sage (Light Green)
3=Grape (Purple)
4=Flamingo (Peachy Orange)
5=Banana (Yellow)
6=Tangerine (Orange)
7=Peacock (Light Blue)
8=Graphite (Dark Gray)
9=Blueberry (Dark Blue)
10=Basil (Dark Green)
11=Tomato (Dark Red)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.