You need to sign in to do that
Don't have an account?
Bret Fisherkeller 9
Einstein Predictive Vision Service - Create the Visualforce page
I pasted the apex code exactly as is shown in the lesson, but when I run preview I get the error:
List has no rows for assignment to SObject
Here is the code, which I think is fine, but I'm thinking there is a dependency that is preventing a result.
<apex:page Controller="VisionController">
<apex:form >
<apex:pageBlock >
<apex:image url="http://metamind.io/images/generalimage.jpg">
</apex:image>
<br/>
<apex:repeat value="{!AccessToken}" var="accessToken">
Access Token:<apex:outputText value="{!accessToken}" /><br/>
</apex:repeat>
<br/>
<apex:repeat value="{!callVisionUrl}" var="prediction">
<apex:outputText value="{!prediction.label}" />:<apex:outputText value="{!prediction.probability}" /><br/>
</apex:repeat>
</apex:pageBlock>
<!-- <apex:pageBlock > -->
<!-- <apex:repeat value="{!callVisionContent}" var="prediction"> -->
<!-- <apex:outputText value="{!prediction.label}" />:<apex:outputText value="{!prediction.probability}" /><br/> -->
<!-- </apex:repeat> -->
<!-- </apex:pageBlock> -->
</apex:form>
</apex:page>
List has no rows for assignment to SObject
Here is the code, which I think is fine, but I'm thinking there is a dependency that is preventing a result.
<apex:page Controller="VisionController">
<apex:form >
<apex:pageBlock >
<apex:image url="http://metamind.io/images/generalimage.jpg">
</apex:image>
<br/>
<apex:repeat value="{!AccessToken}" var="accessToken">
Access Token:<apex:outputText value="{!accessToken}" /><br/>
</apex:repeat>
<br/>
<apex:repeat value="{!callVisionUrl}" var="prediction">
<apex:outputText value="{!prediction.label}" />:<apex:outputText value="{!prediction.probability}" /><br/>
</apex:repeat>
</apex:pageBlock>
<!-- <apex:pageBlock > -->
<!-- <apex:repeat value="{!callVisionContent}" var="prediction"> -->
<!-- <apex:outputText value="{!prediction.label}" />:<apex:outputText value="{!prediction.probability}" /><br/> -->
<!-- </apex:repeat> -->
<!-- </apex:pageBlock> -->
</apex:form>
</apex:page>
Thanks!
Changed code from where Title='einstein_platform' to where Title='einstein_platform.pem'
Worked fine after that.