web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : wTDvNaaqU+bNJWPgKMzXhr
Power Apps - Microsoft Dataverse
Unanswered

Importing tables for the animal shelter

Like (0) ShareShare
ReportReport
Posted on 12 May 2024 14:30:14 by 11

Hi

 

Is anyone else having issue just simply importing the 3 tables for the power up challenge, i think i have set the right data type per column and then import as csv yet i am simply encountering obstacles at each turn. a typical error is 

Reason: Bad Request, Header x-ms-client-request-id 46d3724f-2f9d-4f6b-840c-766f40884b94, Error identified in Payload provided by the user for Entity :'pp_animalsinfonews', For more information on this error please follow this help link  ---->  InnerException : Microsoft.OData.ODataException: Cannot convert the literal '19/08/2023' to the expected type 'Edm.Date'. ---> System.FormatException: String '19/08/2023' was not recognized as a valid Edm.Date.   at Microsoft.OData.PlatformHelper.ConvertStringToDate(String text)   at Microsoft.OData.ODataPayloadValueConverter.ConvertStringValue(String stringValue, Type targetType)   at Microsoft.OData.ODataPayloadValueConverter.ConvertFromPayloadValue(Object value, IEdmTypeReference edmTypeReference)   --- End of inner exception stack trace ---   at Microsoft.OData.ODataPayloadValueConverter.ConvertFromPayloadValue(Object value, IEdmTypeReference edmTypeReference)   at Microsoft.Crm.Extensibility.ODataV4.CrmPrimitivePayloadValueConverter.ConvertFromPayloadValue(Object value, IEdmTypeReference edmTypeReference)   at Microsoft.OData.JsonLight.ODataJsonLightReaderUtils.ConvertValue(Object value, IEdmPrimitiveTypeReference primitiveTypeReference, ODataMessageReaderSettings messageReaderSettings, Boolean validateNullValue, String propertyName, ODataPayloadValueConverter converter)   at Microsoft.OData.JsonLight.ODataJsonLightPropertyAndValueDeserializer.ReadPrimitiveValue(Boolean insideJsonObjectValue, IEdmPrimitiveTypeReference expectedValueTypeReference, Boolean validateNullValue, String propertyName)   at Microsoft.OData.JsonLight.ODataJsonLightPropertyAndValueDeserializer.ReadNonEntityValueImplementation(String payloadTypeName, IEdmTypeReference expectedTypeReference, PropertyAndAnnotationCollector propertyAndAnnotationCollector, CollectionWithoutExpectedTypeValidator collectionValidator, Boolean validateNullValue, Boolean isTopLevelPropertyValue, Boolean insideResourceValue, String propertyName, Nullable`1 isDynamicProperty)   at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.ReadEntryDataProperty(IODataJsonLightReaderResourceState resourceState, IEdmProperty edmProperty, String propertyTypeName)   at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.ReadPropertyWithValue(IODataJsonLightReaderResourceState resourceState, String propertyName, Boolean isDeltaResourceSet)   at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.<>c__DisplayClass9_0.<ReadResourceContent>b__0(PropertyParsingResult propertyParsingResult, String propertyName)   at Microsoft.OData.JsonLight.ODataJsonLightDeserializer.ProcessProperty(PropertyAndAnnotationCollector propertyAndAnnotationCollector, Func`2 readPropertyAnnotationValue, Action`2 handleProperty)   at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.ReadResourceContent(IODataJsonLightReaderResourceState resourceState)   at Microsoft.OData.JsonLight.ODataJsonLightReader.StartReadingResource()   at Microsoft.OData.JsonLight.ODataJsonLightReader.ReadResourceSetItemStart(PropertyAndAnnotationCollector propertyAndAnnotationCollector, SelectedPropertiesNode selectedProperties)   at Microsoft.OData.JsonLight.ODataJsonLightReader.ReadAtStartImplementationSynchronously(PropertyAndAnnotationCollector propertyAndAnnotationCollector)   at Microsoft.OData.ODataReaderCore.ReadImplementation()   at Microsoft.OData.ODataReaderCore.InterceptException[T](Func`1 action)   at System.Web.OData.Formatter.Deserialization.ODataReaderExtensions.ReadResourceOrResourceSet(ODataReader reader)   at Microsoft.Crm.Extensibility.CrmODataEntityDeserializer.Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext)   at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger).

 

now date colums for instance in the animal table i would expect it to be of type date same as in the tables in data verse yet i seem to hit a brick wall at every turn. any help would be really appreciated as im losing the will to live on such a basic . i would assume i have made the incorrect data types in the csv file somewhere.

 

Thanks in advance

Categories:
I have the same question (0)
  • Jonathan Manrique Profile Picture
    2,687 on 13 May 2024 at 11:57:15
    Re: Importing tables for the animal shelter

    Hi @MrHouse 

     

    Check the configuration of the date format you use, dd/mm/yyyy is not the same as mm/dd/yyyy that may affect your data import

  • Mr_House365 Profile Picture
    11 on 13 May 2024 at 12:42:14
    Re: Importing tables for the animal shelter

    Thanks for the response, unfortunateley i got the same error

  • Jonathan Manrique Profile Picture
    2,687 on 20 May 2024 at 06:57:16
    Re: Importing tables for the animal shelter

    Hi @MrHouse 

     

    I give you a few tips on how to do it, create a record in the form itself, then download the record in an Excel file, validate the date as it is, and from there you begin to create your Excel file based on that format that you have downloaded. Then you upload the file as an import

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 752 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 472

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 358 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Loading complete