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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Offline powerapps "Exp...
Power Apps
Answered

Offline powerapps "Expected a record value but of a different schema " issue

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

Online scenario-  I have two entities journey and detail.  And I have two screen on one screen I fill the data and record gets created in journey . And I have second screen on which I fill more detail about particular record and when I submit, record should get created into detail with GUID column(Unique Identifier). Now I have lookup field in detail called "Journey Lookup" which is nothing but the GUID of the recent record inserted by the journey which we submitted on first screen.

How can I do that in offline mode? Online is working. For offline I need to check if the record is created today having no end date and Buslookup value=lookup value for the logged in user from a Bus entity.  

I have this on App Onstart -

Tejasvi_munge_0-1594125543191.png

I have this on Onselect of submit button -
If(
Connection.Connected,
Patch('Triage daily Replicas',Defaults('Triage daily Replicas'),{
Temperature:Value(TextInput11.Text),
'Journey Lookup':LookUp(Journeys,'Bus ID Lookup'.Bus=GUID(TextInput7.Text) And IsBlank('Journey End Date and Time') And 'Created On'=Today())
}),
Collect(
TriagebyBusCollection,
{
cre08_temperature: Value(TextInput11.Text),
cre08_journeylookup:LookUp(
JourneyColletion,
cre08_busid.Bus = GUID(TextInput7.Text) && IsBlank(cre08_journeyenddateandtime) && IsToday(cre08_journeystartdateandtime))

}
);
SaveData(
TriagebyBusCollection,
"Saveitemstotriagebybus"
))

 

Any help is appreciated!

 

 

Categories:
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    The cre08_journeylookup is only the record of JourneyColletion, rather than Journey entity, however, the 'Journey Lookup' field requires a record of Journey entity, so this is the cause of the issue.

    The workaround is to retrieve the record from Journey entity by GUID value in cre08_journeylookup using LookUp function.

    Please modify the 'Journey Lookup' field in Patch formula as follows.

    'Journey Lookup': LookUp(Journeys, Jounery=cre08_journeylookup.Jounery)

    Hope this helps.

    Sik 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-siky-msft ,

    Thank you for your response!It is giving me  error saying "Invalid argument type " and "Invalid use of '.' "

    Tejasvi_munge_0-1594182547636.png

    will this help me in offline mide?

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    The column may be the saved as Logic Name with prefix (Rather than Display Name) when collecting Entity to Collection.Snipaste_2020-07-08_13-45-54.png

    You can first input the 'cre08_journeylookup.' into the formula bar , then select the logic name of GUID field(Jounery) in the suggested doropdown list.

    Hope this helps.

    Sik

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard