cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Contract failure: Construction of a PABinary always result in a valid instance

Hi 

 

I am getting below issue while uploading image to sharepoint by taking image from mobile . Its really urgent . Suddenly it stopped working . 

 

"Contract failure: Construction of a PABinary always result in a valid instance"

Quick help will really be appriciated.

 

Thanks

Gautam 

18 REPLIES 18
Highlighted
Power Apps
Power Apps

Re: Contract failure: Construction of a PABinary always result in a valid instance

Hello,

 

We are currently investigating this issue. To help investigate would you be able to provide a session ID when this issue occurs in the mobile player. Also do you happen to know the size of the image being uploaded.

 

Thanks,

Cody

Highlighted
Impactful Individual
Impactful Individual

Re: Contract failure: Construction of a PABinary always result in a valid instance

I have also been suffering this issue for the last few days.
Again..
How are we meant to use these apps in a live environment when it’s so so buggy.
Jeez I reported about Patch not working on collections where initilally its a null value nearly a year ago and it’s still not fixed
Highlighted
Helper III
Helper III

Re: Contract failure: Construction of a PABinary always result in a valid instance

Hi Cody,

 

Please find the session ID below .

 

Session ID: 9085c4eb-aec6-4ce5-980a-134bc6462ea9
PowerApps 3.18042.26

 

Please try to solve this soon , its really critical . whole application is stuck for this step . 

 

Thanks

Gautam

Highlighted
Impactful Individual
Impactful Individual

Re: Contract failure: Construction of a PABinary always result in a valid instance

Found couple bits:

 

Problem:

When you 'Ask In Powerapps' for the base64 representation of a camera image it also includes the 'data:image/png;base64,' part before the base64 data

Solution: Add a Label, Set is Text Property to a substitute function of the base64 data and replace 'data:image/png;base64,' with '' , then use this for your 'ask in powerapps'.

 

Problem:

Doesnt like blank data (nullvalue)

Solution:

Just do a simple If Isblank formula and replace with minimal image such as 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='

 

 

 

Highlighted
Anonymous
Not applicable

Re: Contract failure: Construction of a PABinary always result in a valid instance

Hi, Can we get an update on this?

Highlighted
Power Apps
Power Apps

Re: Contract failure: Construction of a PABinary always result in a valid instance

Hi @gautmish, I am looking at the session ID you provided, but I am failing to find the "Construction of a PABinary should always result in a valid instance" error. Are you sure that you hit this error in the session you provided?

 

Regarding the error, there is currently a known regression in the area of uploading photos to SharePoint through binary data (using a custom connector and a Flow). One way to know if you are affected by this issue is the following:

 

  1. Uploading a photo to SharePoint works on WebPlayer but not iOS or Android.
  2. If you take a photo that results in a smaller image size, the upload will succeed. You can test this by taking a photo of a solid, white background.

We are currently working on a permanent fix.

 

Thanks,

Allen

Highlighted
Helper III
Helper III

Re: Contract failure: Construction of a PABinary always result in a valid instance

Hi @Delid4ve

 

 

Highlighted
Helper III
Helper III

Re: Contract failure: Construction of a PABinary always result in a valid instance

Hi @AllenKim,

 

Could you please let me know how soon this can be fixed . 

 

Thanks

Gautmish

Highlighted
Impactful Individual
Impactful Individual

Re: Contract failure: Construction of a PABinary always result in a valid instance

you can get the binary data from that blob url using sql.

so:

add action, sql, add rows, set up a dummy table and save the data. (this automatically grabs the binary data from the bloburl)

now add a compose action, and use a function binarytobase64 (this converts the binary data to base64)

now do whatever you want with it, note: you will have to add the data:image/png;base64 to the front of the string if you want to put this in html code for instance

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,866)