Skip to main content
Nintex Community Menu Bar
Question

LinkedIn VisualForce Page Error - ID Value is not valid for the Account Standard Controller

  • Jul 9, 2024 5:12 PM UTC
  • 26 replies
  • 234 views
  • Translate All

Forum|alt.badge.img+2

I am trying to add a Company LinkedIn Page to the Account Detail Page.
I am getting the error message below on template component. Please advise.

Template

Error: ID Value is not valid for the Account Standard Controller

Please advise.

26 replies

Forum|alt.badge.img+20

Do you get this error when you preview the page?  iFrame won’t work when merge syntax is incorporated into the URL.

Translate

Forum|alt.badge.img+2
  • Author
  • Jul 9, 2024 7:24 PM UTC

Yes. I do get the error when I preview the page.

When I use the iFrame format referred in this help link

https://community.skuid.com/t/visualforce-missing-as-option-on-page-include-component

I get the following error -

Please advise.

Translate

Forum|alt.badge.img+20

Does it work if you hard code the ID?

Are you certain Accountdata has a row in it?

Have tried only double mustache?

Translate

Forum|alt.badge.img+2
  • Author
  • Jul 9, 2024 7:24 PM UTC

Similar error.

Are there non-skuid issues I should worry about?

This is our Visualforce page

<!-- Includes the linkedin callback action scripts --><linkedinjscomponent id="jsComponent" objecttype="Account" salesforcerecordid="{!Account.Id}"></linkedinjscomponent><!-- Includes the linkedin widgets --><linkediniframecompanycomponent companyid="{!IF(ISNULL(Account.LID __LinkedIn_Company_Id__ c), LnkdCompId, Account.LID __LinkedIn_Company_Id__ c)}" companyname="{!Account.Name}" objecttype="Account" datacompanies="{!DataCompanies}" instanceurl="{!$Api.Partner_Server_URL_220}" sessionid="{!UserSessionId}" salesforcerecordid="{!Account.Id}" userloginid="{!$User.Username}" userlocale="{!UserLocale}"></linkediniframecompanycomponent> When I click preview on the Visualforce page ![](https://us.v-cdn.net/6032350/uploads/attachments/RackMultipart20150409-8529-ze46t6-Screenshot_040815_100523_PM_inline.jpg "Image: https://d2r1vs3d9006ap.cloudfront.net/s3\_images/1185939/RackMultipart20150409-8529-ze46t6-Screenshot\_040815\_100523\_PM\_inline.jpg?1428545131") I get this error. ![](https://us.v-cdn.net/6032350/uploads/attachments/RackMultipart20150409-9859-5tuja3-Screenshot_040815_100741_PM_inline.jpg "Image: https://d2r1vs3d9006ap.cloudfront.net/s3\_images/1185940/RackMultipart20150409-9859-5tuja3-Screenshot\_040815\_100741\_PM\_inline.jpg?1428545267")
Translate

Forum|alt.badge.img+20

hehehehe … just spotted something. 
{{$Model.Accountdata.data.o.Id}}
should be
{{$Model.Accountdata.data.0.Id}}

You have the letter o where you need the number zero.

Translate

Forum|alt.badge.img+17
  • Nintex Employee
  • Jul 9, 2024 7:24 PM UTC

Eagle eye Pat… Eagle eye.

Also if your VF page has problems running in a stand alone fashion,  it will also fail when using Skuid.  

Translate

Forum|alt.badge.img+20

There also might be an issue with putting this into an iFrame. You can however use a page include of the VF page. You’ll have to set this up in XML. Like this.

<includepanel type="visualforce" pagename="LID__AccountLinkedInCompanyPage" querystring="Id={{{$Model.Accountdata.data.o.Id}}}" lazyload="false"/>
Translate

Forum|alt.badge.img+13

The o rears its head again — needs to be a zero (0) not an o

{{{$Model.Accountdata.data.0.Id}}}

Translate

Forum|alt.badge.img+20

Hehehe… Oops. I point it out for Arpit and then do it myself. Good old Copy paste faith. 😃

Translate

Forum|alt.badge.img+2
  • Author
  • Jul 9, 2024 7:24 PM UTC

The page include xml gave me the following results

Translate

Forum|alt.badge.img+20

Ok.

  1. Remove the component.
  2. Add a page include component.
  3. Go into the XML and manually make the changes to the page include parameters of Type=“visualforce” & pagename=“LID__AccountLinkedInCompanyPage”

Translate

Forum|alt.badge.img+2
  • Author
  • Jul 9, 2024 7:24 PM UTC

I’ve added the VF page to the page include component. 
Now I am receiving an error “List has no rows for assignment to SObject”

Any idea in how to resolve this? 

8a903595499d3a4ab0c9298e9fd984b920a8c1ca.jpg

Translate

Forum|alt.badge.img+17
  • Nintex Employee
  • Jul 9, 2024 7:24 PM UTC

That error means you are not passing any recognizable ID’s into the VF page and its query is not returning any results.  Most likely it is your query string.   Can you post the XML you added to the page.

Translate

Forum|alt.badge.img+2
  • Author
  • Jul 9, 2024 7:25 PM UTC













































































































































































































































































































































































<field id

Translate

Forum|alt.badge.img+7

I have the same problem, most of my apex pages doesn’t work from skuid if you use the relative URLs,

You have to use the complete url, in my case is https://c.eu2.visual.force.com/apex/YOURPAGE

Translate

Forum|alt.badge.img+17
  • Nintex Employee
  • Jul 9, 2024 7:25 PM UTC

The include panel part of your page is not here.  Just give me that part. 

Translate

Forum|alt.badge.img+17
  • Nintex Employee
  • Jul 9, 2024 7:25 PM UTC

You need to include the namespace in front of your page name in order for Salesforce to switch to the correct domain name. 

If the page is not part of a package the namespace is “c__VFPageName”
If the page is part of a package use that namespace  “skuid__VFPageName”


Translate

Forum|alt.badge.img+8

You should be able to use a relative URL.  Using an absolute URL here would be considered a bad practice.  Try /apex/c__YOURPAGE

Translate

Forum|alt.badge.img+2
  • Author
  • Jul 9, 2024 7:25 PM UTC

Here you go Rob,


<action type=“redirect” label=“LinkedIn Sales Navigator” icon=“ui-silk-anchor” window=“blank” url=“https://na1.salesforce.com/{{Id}}?nooverride={{param.id}}”/>;





Translate

Forum|alt.badge.img+7

Ok I’m going to try it

Translate

Forum|alt.badge.img+7

It;s working, Thanks! (now I have to change a lot of things xD)

Translate

Forum|alt.badge.img+17
  • Nintex Employee
  • Jul 9, 2024 7:25 PM UTC

Choose your poison: Change things now or change them when SForce moves you to a new instance…

Translate

Forum|alt.badge.img+7

I know, I know… but but… sniff… xDD

Translate

Forum|alt.badge.img+20

Why does the URL require “c__” in front of the page?

Translate

Forum|alt.badge.img+20

Why does the URL require “c__” in front of the page?

Translate