cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Harness Bug: wrong data input value breaks the Harness

When developing a PCF OptionSet Control in the Harness, I've clicked on the "up/down" arrows to change the Input Value (spin up/down) and I happened to come to the value -1. After that the Harness breaks, and a complete white page is shown.

The problem is that I had no idea how to fix that: closing the harness didn't fix it. It seems that the value is cached somewhere, but I didn't know how to change it (in the beginning I thought there is something wrong with my code). 

I've attached a screenshot with the console log.

I fixed it by accident, by renaming my property in the manifest. 

Until the bug is fixed, maybe you can also tell me a better way to fix the harness when something like this happens.

1 ACCEPTED SOLUTION

Accepted Solutions
a33ik
Level 8

Re: Harness Bug: wrong data input value breaks the Harness

@DianaBirkelbach I was able to replicate issue that is similar to yours and I was able to fix it. That "cached" values that you mentioned are stored inside local storage of browser and here are steps to perform to fix it (I provide it for Chrome but I believe steps for other browsers will be similar):

1. Click f12 to open Developer Tools.

2. Open "Application" tab and look for "Local Storage" there, open it.

3. Look for "Harness" url inside (it should look like "http://127.0.0.1:8181") and click on it.

4. In the list on the right look for "<Your Control Name>_properties". Once found - right click -> Delete.

 

That fixed issue for me.

View solution in original post

6 REPLIES 6
Microsoft v-siky-msft
Microsoft

Re: Harness Bug: wrong data input value breaks the Harness

@DianaBirkelbachDo you mind sharing the Manifest and index.ts files? so we can reproduce your issue.

Sik

Re: Harness Bug: wrong data input value breaks the Harness

@v-siky-msft  Sure. I've actually took an example from the sdk examples: ComponentStateAPI and changed the control type in "OptionSet", and deleted the whole code inside. So basically nothing inside.

As soon as you come to "-1" inside the value input in the harness, you cannot use the harness anymore (empty page).

 

Diana

 

a33ik
Level 8

Re: Harness Bug: wrong data input value breaks the Harness

@DianaBirkelbach I was able to replicate issue that is similar to yours and I was able to fix it. That "cached" values that you mentioned are stored inside local storage of browser and here are steps to perform to fix it (I provide it for Chrome but I believe steps for other browsers will be similar):

1. Click f12 to open Developer Tools.

2. Open "Application" tab and look for "Local Storage" there, open it.

3. Look for "Harness" url inside (it should look like "http://127.0.0.1:8181") and click on it.

4. In the list on the right look for "<Your Control Name>_properties". Once found - right click -> Delete.

 

That fixed issue for me.

View solution in original post

a33ik
Level 8

Re: Harness Bug: wrong data input value breaks the Harness

@HemantG @AnqiChen 

Issue that blows up Harness is related to formatting of negative values - it should be straight forward fix on your side. Check project attached as an example to reproduce.

ben-thompson
Level 8

Re: Harness Bug: wrong data input value breaks the Harness

You can also do it from within your browser's command line when you are in the harness.

 

Just type localStorage.removeItem(<Your Control Name>_properties);

 

and then refresh the page.

Re: Harness Bug: wrong data input value breaks the Harness

It worked like a charm 😀 So  the cache was in the localStorage. Thanks a lot! 

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Users online (4,663)