Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I had used blazorIndexedDb package for blazorWASM application

Public class Orders
{
Public long? TGorderid

---remaing proprties---
}

C#
var orders = (await manager.ToArray<Orders>("Orders")).ToList();

An exception occurred executing JS interop: The JSON value could not be converted to System.Nullable`1[System.Int64]. Path: $[0].tGorderid | LineNumber: 0 | BytePositionInLine: 110..


How to fix this issue exctly when reterive the orders

PLease help me. Thansks

What I have tried:

An exception occurred executing JS interop: The JSON value could not be converted to System.Nullable`1[System.Int64]. Path: $[0].tGorderid | LineNumber: 0 | BytePositionInLine: 110..
Posted
Comments
Richard MacCutchan 3-Jan-24 12:24pm    
Please show the JSON data that causes the problem.
Krishna Veni 3-Jan-24 12:25pm    
var orders = (await manager.ToArray<orders>("Orders")).ToList();
when execute this error occured. I can not able to send
Richard MacCutchan 3-Jan-24 12:40pm    
Sorry, we cannot guess what the JSON data contains.

1 solution

You have an error for tGorderid but the property is TGorderid. Unless you have ignore case enabled or map the property name, you need to match property name casing.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900