Open
Description
Using version 1.1.1.1 (from Nuget) within an Azure Function:
The AddOrder method call is returning the error below.
Exception while executing function: Shipment. System.Private.CoreLib: Could not load file or assembly 'System.Text.Json, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified
The previous version allowed Order creation, but it also had HTTP errors when adding ExtFieldCustomData to the Order.
Example code:
var orderParams = new Order()
{
Address1 = pkg.address + "," + pkg.city + "," + pkg.state + "," + pkg.zip,
CachedLat = pkg.latitude,
CachedLng = pkg.longitude,
AddressAlias = pkg.customer,
ExtFieldEmail = pkg.Customer_Email,
ExtFieldPhone = pkg.Customer_Phone,
ExtFieldCustomData = new Dictionary<string, string>()
{
{
"Barcode", pkg.Barcode.ToString()
}
},
DayScheduledFor_YYYYMMDD = DateTime.Now.ToString("yyyy-MM-dd"),
LocalTimeWindowEnd = null,
LocalTimeWindowEnd2 = null,
LocalTimeWindowStart = null,
LocalTimeWindowStart2 = null,
LocalTimezoneString = "America/New_York",
OrderIcon = "emoji/emoji-house"
};
route4Me.AddOrder(orderParams, out string errorString);
log.LogInformation(errorString);
}
Metadata
Metadata
Assignees
Labels
No labels