SDK behaves differently when run from different locations

SDK behaves differently when run from different locations

Hi,

I am using the C# SDK v3.1.0 (ZCRMSDK) and experiencing different behaviour when I run it from two different but identical servers (using the same code and same database).

From one server I receive the following error when trying to update a Choice (Picklist) field on a contact:
{ "field": "aCPRRegion", "class": "System.RuntimeType", "index": 0, "expected-type": "Com.Zoho.Crm.API.Util.Choice", "given-type": "System.String"}

Yet from another server, this field will update OK.

If I change my code to send a Choice object instead of text, and deploy to both servers (still using the same database on both), then the first error message is resolved, but then the second server will give the error:
(invalid data) api_name: ACPR_Region expected_data_type: text

By changing the data types in my code I can get one server to work, or the other, but never both. It almost seems like you have two different APIs running behind a load balancer with very different code/validation on them?

Is there any explanation as to why the SDK would behave so differently from different servers?





                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation


                                        Manage your brands on social media



                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources



                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources


                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources


                                                            Zoho Sprints Resources


                                                              Qntrl Resources


                                                                Zoho Creator Resources


                                                                  Zoho WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • Functions

                                                                        Functions

                                                                      • Meetups

                                                                        Meetups

                                                                      • Kbase

                                                                        Kbase

                                                                      • Resources

                                                                        Resources

                                                                      • Digest

                                                                        Digest

                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner

                                                                      





                                                                      




                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now