Keep getting "code": 14, "message": "Invalid value passed for authtoken." My authtoken is correct though!

Keep getting "code": 14, "message": "Invalid value passed for authtoken." My authtoken is correct though!

Yesterday, I reset my password. I think I accidentally selected that checkbox that deletes all API/Authtokens.

Today I regenerated new connection/authtokens for each Zoho Module that I needed. All my standard actions work great in Zoho Flow. BUT my custom function that creates an invoice returns an error message every time. It returns that the Authtoken is invalid. BUT it is correct. When I go to my accounts.zoho.com I can see the authtoken I am using is present in the list. Also that authtoken has Scope Name "booksapi" and Service Name is "Books". I have created different keys multiple times and EVERY time I get the same error message on my custom function to create an invoice in Zoho Books. This is the error message that displays: "code": 14, "message": "Invalid value passed for authtoken." This custom function has ALWAYS worked with the old authtoken, but now with the new one it is not working :(((((

Please help. I think there is something weird going on here. As part of creating an invoice it's supposed to look into the items module of Zoho Books and its supposed to use my authtoken for that as well as creating the invoice. BUT it seems to query the items just fine (how does it do that if authtoken is really wrong?) but then for some reason it just doesn't create the invoice in Zoho Books. Here is the full response that the custom function returns:

"info_logs": [
		"Well Pump - Annual,Second Refrigerator - Annual,Septic Tank Pumping - Annual",
		"Single-Family Home Appliance Package - Annual,Well Pump - Annual,Second Refrigerator - Annual,Septic Tank Pumping - Annual",
		{
			"code": 0,
			"message": "success",
			"items": [
				{
					"item_id": 1386825000000228005,
					"name": "Single-Family Home Appliance Package - Annual",
					"item_name": "Single-Family Home Appliance Package - Annual",
					"unit": "Year(s)",
					"status": "active",
					"source": "user",
					"is_linked_with_zohocrm": true,
					"zcrm_product_id": 3201031000003034039,
					"description": "",
					"rate": 429.0,
					"tax_id": "",
					"tax_name": "",
					"tax_percentage": 0,
					"purchase_account_id": "",
					"purchase_account_name": "",
					"account_name": "Sales",
					"purchase_description": "",
					"purchase_rate": 0.0,
					"item_type": "sales",
					"product_type": "service",
					"has_attachment": false,
					"sku": "",
					"image_name": "",
					"image_type": "",
					"image_document_id": "",
					"created_time": "2019-03-21T22:48:30-0500",
					"last_modified_time": "2019-07-04T18:33:57-0500"
				}
			],
			"page_context": {
				"page": 1,
				"per_page": 200,
				"has_more_page": false,
				"report_name": "Items",
				"applied_filter": "Status.All",
				"sort_column": "name",
				"sort_order": "A",
				"search_criteria": [
					{
						"column_name": "name",
						"search_text": "Single-Family Home Appliance Package - Annual",
						"search_text_formatted": "Single-Family Home Appliance Package - Annual",
						"comparator": "contains"
					}
				]
			}
		},
		{
			"code": 0,
			"message": "success",
			"items": [
				{
					"item_id": 13xxxxxxxxxx8014,
					"name": "Well Pump - Annual",
					"item_name": "Well Pump - Annual",
					"unit": "Year(s)",
					"status": "active",
					"source": "user",
					"is_linked_with_zohocrm": true,
					"zcrm_product_id": 320xxxxxxxx4043,
					"description": "",
					"rate": 90.0,
					"tax_id": "",
					"tax_name": "",
					"tax_percentage": 0,
					"purchase_account_id": "",
					"purchase_account_name": "",
					"account_name": "Sales",
					"purchase_description": "",
					"purchase_rate": 0.0,
					"item_type": "sales",
					"product_type": "service",
					"has_attachment": false,
					"sku": "",
					"image_name": "",
					"image_type": "",
					"image_document_id": "",
					"created_time": "2019-03-21T22:49:45-0500",
					"last_modified_time": "2019-07-04T18:33:57-0500"
				}
			],
			"page_context": {
				"page": 1,
				"per_page": 200,
				"has_more_page": false,
				"report_name": "Items",
				"applied_filter": "Status.All",
				"sort_column": "name",
				"sort_order": "A",
				"search_criteria": [
					{
						"column_name": "name",
						"search_text": "Well Pump - Annual",
						"search_text_formatted": "Well Pump - Annual",
						"comparator": "contains"
					}
				]
			}
		},
		{
			"code": 0,
			"message": "success",
			"items": [
				{
					"item_id": 138xxxxxxxxx84,
					"name": "Second Refrigerator - Annual",
					"item_name": "Second Refrigerator - Annual",
					"unit": "Year(s)",
					"status": "active",
					"source": "user",
					"is_linked_with_zohocrm": true,
					"zcrm_product_id": 320xxxxxxxx7,
					"description": "",
					"rate": 36.0,
					"tax_id": "",
					"tax_name": "",
					"tax_percentage": 0,
					"purchase_account_id": "",
					"purchase_account_name": "",
					"account_name": "Sales",
					"purchase_description": "",
					"purchase_rate": 0.0,
					"item_type": "sales",
					"product_type": "service",
					"has_attachment": false,
					"sku": "",
					"image_name": "",
					"image_type": "",
					"image_document_id": "",
					"created_time": "2019-04-07T21:03:42-0500",
					"last_modified_time": "2019-07-04T18:33:58-0500"
				}
			],
			"page_context": {
				"page": 1,
				"per_page": 200,
				"has_more_page": false,
				"report_name": "Items",
				"applied_filter": "Status.All",
				"sort_column": "name",
				"sort_order": "A",
				"search_criteria": [
					{
						"column_name": "name",
						"search_text": "Second Refrigerator - Annual",
						"search_text_formatted": "Second Refrigerator - Annual",
						"comparator": "contains"
					}
				]
			}
		},
		{
			"code": 0,
			"message": "success",
			"items": [
				{
					"item_id": 138xxxxxxxxxxxxx3,
					"name": "Septic Tank Pumping - Annual",
					"item_name": "Septic Tank Pumping - Annual",
					"unit": "Year(s)",
					"status": "active",
					"source": "user",
					"is_linked_with_zohocrm": true,
					"zcrm_product_id": 32xxxxxxxxx31,
					"description": "",
					"rate": 72.0,
					"tax_id": "",
					"tax_name": "",
					"tax_percentage": 0,
					"purchase_account_id": "",
					"purchase_account_name": "",
					"account_name": "Sales",
					"purchase_description": "",
					"purchase_rate": 0.0,
					"item_type": "sales",
					"product_type": "service",
					"has_attachment": false,
					"sku": "",
					"image_name": "",
					"image_type": "",
					"image_document_id": "",
					"created_time": "2019-04-07T21:04:09-0500",
					"last_modified_time": "2019-07-04T18:33:58-0500"
				}
			],
			"page_context": {
				"page": 1,
				"per_page": 200,
				"has_more_page": false,
				"report_name": "Items",
				"applied_filter": "Status.All",
				"sort_column": "name",
				"sort_order": "A",
				"search_criteria": [
					{
						"column_name": "name",
						"search_text": "Septic Tank Pumping - Annual",
						"search_text_formatted": "Septic Tank Pumping - Annual",
						"comparator": "contains"
					}
				]
			}
		},
		{
			"code": 14,
			"message": "Invalid value passed for authtoken."
		}




                            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