cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Skilled Sharer
Skilled Sharer

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
Highlighted
MVP

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
Highlighted
Community Support
Community Support

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

Highlighted
Skilled Sharer
Skilled Sharer

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

 

Highlighted
MVP

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

Highlighted
MVP

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.

Highlighted
Impactful Individual
Impactful Individual

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.

---
If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".
Highlighted
Skilled Sharer
Skilled Sharer

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Users online (9,286)