cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

JSON Number

Hi all,

 

I'm having trouble understanding why the parsing method is not working here. All the JSON data that begins with "00." are failing. Is there anything I can do about this?

Message says: "Unable to process template language expressions in action 'ChemicalCompositionOutput' inputs at line '1' and column '36545': 'The template language function 'json' parameter is not valid. The provided value '{"Aluminum-Max": 0, "Aluminum-Min": 0,"Antimony-Max": 0, "Antimony-Min": 0,"Bismuth-Max": 0, "Bismuth-Min": 0,"Boron-Max": 0, "Boron-Min": 0,"Carbon-Max": 1.05, "Carbon-Min": 0.95,"Chromium-Max": 5.50, "Chromium-Min": 4.75,"Cobalt-Max": 0, "Cobalt-Min": 0,"Copper-Max": 0, "Copper-Min": 0,"Iron-Max": 92.75, "Iron-Min": 89.99,"Lead-Max": 0, "Lead-Min": 0,"Magnesium-Max": 0, "Magnesium-Min": 0,"Manganese-Max": 1.00, "Manganese-Min": 0.40,"Molybdenum-Max": 1.40, "Molybdenum-Min": 0.90,"Nickel-Max": 0, "Nickel-Min": 0,"Niobium-Max": 0, "Niobium-Min": 0,"Nitrogen-Max": 0, "Nitrogen-Min": 0,"Phosphorus-Max": 0.03, "Phosphorus-Min": 0,"Selenium-Max": 0, "Selenium-Min": 0,"Silicon-Max": 0.50, "Silicon-Min": 0.10,"Sulfur-Max": 0.03, "Sulfur-Min": 0,"Tellurium-Max": 0, "Tellurium-Min": 0,"Tin-Max": 0, "Tin-Min": 0,"Titanium-Max": 0, "Titanium-Min": 0,"Tungsten-Max": 0, "Tungsten-Min": 0,"Vanadium-Max": 0.50, "Vanadium-Min": 00.15,"Zinc-Max": 0, "Zinc-Min": 0,"Zirconium-Max": 0, "Zirconium-Min": 0,"-Max": 0, "-Min": 0}' cannot be parsed: 'Input string '00.15' is not a valid number. Path 'Vanadium-Min', line 1, position 932.'. Please see https://aka.ms/logicexpressions#json for usage details.'."

 

ProfileCrater3_0-1621960577213.png

ProfileCrater3_1-1621960617415.png

 

 

3 REPLIES 3
Pstork1
Dual Super User III
Dual Super User III

00.15 would be a valid string, but its not a valid number.  The number would need to be 0.15 not 00.15.  I would suggest doing a search and replace for '00.' in the JSON before trying to parse it.  



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Anonymous
Not applicable

Thanks for reply! Is there anything I can change in the schema to make up for this? I thought it was being parsed as a string, not number the entire time.

Pstork1
Dual Super User III
Dual Super User III

It can't really be parsed as a string since its not in single quotes.  Its entered like a number, but its in an invalid format.  If you can't change the source to provide a valid format your only real choice is to modify the JSON text before trying to parse it.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,039)