Ошибка загрузки страницы visualforce

  • Solved Questions
  • This Question

iskradeviskradev

Error occurred while loading a Visualforce page

  • September 9, 2013
  • ·
  • Like
  • 0
  • ·
  • Follow
  • 5

Best Answer chosen by Admin (Salesforce Developers) 

Rahul_sgRahul_sg

I cant open the error screenshot due to security however; I’ve 1 question.
How are you calling this VF page?
Are you passing any Id?
try passing id like this> in your URL after /apex/vfpagename?id=’any valid account id in your org here’

  • September 9, 2013
  • ·
  • Like
  • 0
  • ·
  • Dislike
  • 0

All Answers

Rahul_sgRahul_sg

I cant open the error screenshot due to security however; I’ve 1 question.
How are you calling this VF page?
Are you passing any Id?
try passing id like this> in your URL after /apex/vfpagename?id=’any valid account id in your org here’

This was selected as the best answer

Tim BarsottiTim Barsotti

—Are you trying to access this from Sites? The error message looks like a Sites error message.

—Can you pull up the site from /apex/{PageName}? 

—Would you post your code an the URL you are using please?

  • September 9, 2013
  • ·
  • Like
  • 0
  • ·
  • Dislike
  • 0

Grazitti InteractiveGrazitti Interactive

Hi,

Please go through following two solutions, most probably it will solve your problem.

1)Are you trying to access this from Sitesif yes then — GOTO Setup —> Manage Users—> Profiles —>select your customer portal profile that logged in user have Click on the edit button on section Enabled Visualforce Page Access and add your Visualforce page to this profile.

2). Don’tforget to pass a valid Id in parameter along with the name of Visualforce page

/**If this post helps you then please mark it as a solution and don’t forget to give me kudo’s.***/

Thanks

Grazitti

  • September 10, 2013
  • ·
  • Like
  • 0
  • ·
  • Dislike
  • 0

iskradeviskradev

Hello, guys. Thanks for the answers. I didn’t pass any ids and passing it indeed helped to load the page correctly. However, the question is how do I debug these errors in the future? As the codebase is small, it’s not very hard to spot what went wrong, but in the future hunting it down will be a nightmare.

  • September 10, 2013
  • ·
  • Like
  • 1
  • ·
  • Dislike
  • 0

sfdcdev.wordpress.comsfdcdev.wordpress.com

Hello TIm — we are trying to do a ‘new’ button override usign a VF page.
It works correctly for internal user and for partner portal users.

However, if we create a community and enable partner users to that community and try to click the’new’ button from with in the community as the partner user, we get — Error: Error occurred while loading a Visualforce page.

Thank you for the help in advance.

  • January 6, 2014
  • ·
  • Like
  • 0
  • ·
  • Dislike
  • 0

David CheungDavid Cheung

The generic message «Error: Error occurred while loading a Visualforce page» is generated from the out-of-the-box communities or portal Exception page. You can see this configuration through Communities/Manage Communities/<Your Community>/Force.com, Error Page Pages section, and Generic Error Page. This page is displayed whenever an error is thrown from the VF page that your community user is trying to access. Since your VF page is meant for external consumption the idea is to mask as much about the actual error as possible to prevent exposing your org’s configuration to the public, which also means it doesn’t help during development. However you can edit the Exception page to show the actual error by adding the following block:

<apex:outputText styleClass=»title» value=»{!$Label.site.error}»>
                   <apex:param value=»{!$Site.ErrorDescription}»/>
</apex:outputText>

to supplement the messaging display block that’s already on the page:

<apex:outputText styleClass=»title» value=»{!$Label.site.error}»>
     <apex:param value=»{!$Site.ErrorMessage}»/>
     <!— this parameter needs to be italic in the site.error label —>
<apex:outputText>

Of course remove the block once you are able to determine the error.
For whatever reason errors encountered on communities VF pages are not logged in the debug log therefore this is the only method to see the error.

  • June 27, 2014
  • ·
  • Like
  • 11
  • ·
  • Dislike
  • 0

Alex SkemprisAlex Skempris

Just a +1 for David. Fantastic solution!

As Jonathan if we can get more info around the error would be really helpful

  • April 20, 2018
  • ·
  • Like
  • 0
  • ·
  • Dislike
  • 0

Muriel P 3Muriel P 3

Thanks David, you gave me a solution there. 

And not for the first time! 

  • May 8, 2019
  • ·
  • Like
  • 0
  • ·
  • Dislike
  • 0

You need to sign in to do that.

Dismiss

  • Need help?

Home » Visas » USA » Apply US Visa » Error occurred while loading a Visualforce Page – US Visa Appointment

Last Updated : March 10, 2022 |

As you are going through the process of applying for US Visa Stamping at a US Consulate or US Embassy, you would use US Visa Appointment Online booking system at ustraveldocs.com website. The actual online appointment booking system is redirected to CGI Federal website that runs on Salesforce’s force.com platform. While the online appointment booking system works fairly well, there are some common errors that you might encounter. In this article, we will look at the one of the most common error that you get “Error occurred while loading a Visualforce Page” and how to get if fixed.

Error occurred while loading a Visaualforce Page – US Visa System Error Details

Below are the details of the issue and why you would see something like this and what could have happened and how to fix the same.

What is the Issue ? When do you see this error ?

You may get an error message in the US Visa Appointment Booking system (CGI Federal website that is at URL https://cgifederal.secure.force.com/ ) that says “Error: Error Occurred while loading a Visualforce page.” as in the below screenshot during one of the following situations.

  • When you are trying to fill out the details related to Emergency US Visa Appointment(EA) request on CGI Federal website and submit the same, sometimes you may get the below error.
  • You may also get the below error, when you are trying to change the DS-160 number, after you have created a new DS-160 and trying to update that number with the new number.
  • You may also get this error, when you are trying to update your profile on USTravelDocs CGI Federal website.
  • Sometimes, you may see the same error, when you are trying to book an appointment as well. This case is very uncommon, but happens.

What is the reason for the Error ?

The error is related to Salesforce platform Force.com’s common error related to form submission or changes related to form. It is a generic message related to the platform and does not give you any information. It can be confusing and you may not know if the action you performed was successful or not.

Ideally, someone who wrote the application should have handled this error, but they missed to handle it. So, in cases, where there is no specific logic to handle errors or if the system does not know what to do, you will get the default system error. This message is the default system error.

How to Fix the Error ? Outcome after the Error ? Solution ?

Depending on what scenario you got the error, below are the typical outcomes or solutions to your error.

  • Emergency Visa Appointment Request Submission: When you get the above error during submission of Emergency US visa Appointment Request, then most of the time, your EA request was submitted successfully. You should not submit or refresh the page again. If you refresh the page, it will be submitted twice. One way to validate and be sure that your EA request was submitted is to email the USTravelDocs Support email and ask for the same. They would usually confirm if your EA request was submitted successfully. You can also call the support team to confirm the same.
  • Profile Update, DS-160 Update : If you are getting the above error for profile changes or updates to the DS-160 number, then you need to call customer service to check the reason for the issue. Sometimes, it is not reflected or some duplicate issues. They will help you sort it out. You can email or call them.
  • Visa Stamping / Biometrics Appointment Booking : If you got this error when you are booking an appointment for either interview or Biometrics, it means that something is not working. You can try after few hours and see, if it works. If not, you can try it next day. In the mean time, you can reach out to the customer service. This scenario does not happen very often and if it repeats during the appointment booking, then you need to contact customer service.

Whom to Email or Call for the Error ?

The email address for USTravelDocs varies by country, so you need to check the support email for your country on the ustraveldocs.com website related to your country. For India, the support email is support-india@ustraveldocs.com , you just email the address to get confirmation.

You can navigate to the https://www.ustraveldocs.com/ page and then select the country and go to the contact page on the website for more details on the email info. For India, you can check the USTravelDocs.com/in for Contact Info. If you are not clear, you can also email the US consulate for the same.

What was your experience with the error ? How did you solve it ? Share your thoughts and experiences in comments below.

You can also check out solutions to other common errors like Your Group Size is Larger than the current allocation or“Your personal details match the profile which already exists in our database.

Other Articles

I’ve already googled on this issues and I did all the recommendations, But still Un achieved,

I’ve created visualforce page to display Attachments on Particular Object for Current Logged in User in Portals,

It is working fine by passsing HardCoded Id over URL (Poratal user) and also By Opening that Page Seperately(apex/MyInvoiceDocs?Id=’abd145455562′) Its working.

Outside portal Home page, By Hardcoding the One of Portal User Id

But when I access this page in Portals(Using «where ID=:UserInfo.getUserId()» in controller Query )

Which actually gets Id of current logged in User(Portal enabled) and Displays Attachments

I’m getting » Error occurred while loading a Visualforce page »

Also, This page and Class is already Accessible to that User’s Profile(Apex class and VF page access)

Any one Suggest me…

And I didnt used any Lookup field on VF page and I used,

 <apex:column headerValue="View / Download">
            <apex:outputLink styleClass="btn" value="{!URLFOR($Action.Attachment.Download, a.At.Id)}" target="_blank"> View </apex:outputLink> 
       </apex:column> 

for Download / view of attachment

As on Force.com site normally we see the error like below image,
enter image description here

which is difficult to understand and not user friendly, however we can define a custom error page to catch the exceptions , so that when ever an error occurrs it will get redirect to our custom visualforce error page and will displays the actual error message.

  1. Create a custom VF page and Controller and write a PageLevel Action.

  2. There are two methods available in Force.com sites
    i.$Site.ErrorMessage
    ii. $Site.ErrorDescription

  3. In Controller write a method to catch exception using above method.

  4. There standard error pages already available in Community setttings, replace these VF pages in Community settings with custom VF page for error message.
    For more details please refer https://help.salesforce.com/articleView?id=sites_error_pages.htm&type=0 for replacing standard error pages.
    That’s it, now whenever an exception occurred you will get the details on your custom error page.

VF Page:

<apex:page action="{!yourPageLevelAction}" controller="YourController" >
<apex:outputText styleClass="title" value="{!failingPageResponse}">    </apex:outputText>

Controller:

public  class YourController {
    //Variable Declaration
    public String failingPageResponse { get; set; }

    public PageReference yourPageLevelAction()
    {
        failingPageResponse = Site.getErrorDescription();
    }//yourPageLevelAction
}//YourController

Using this you will get idea about what is going wrong and probably that will help you to mitigate your issue.

Thanks,
Nachiket

Сейчас этот форум просматривают: riansinna, sergio_maletty и гости: 10

Re: Перемены в системе подаче заявлений на визу США с 1.8.20

При записи на собеседование в окне для подтверждения оплаты консульского сбора надо вводить не только шестизначный номер квитанции, а дату и номер квитанции (ВРЕМЯ вводить не нужно). Пример, квитанция от 22.08.11 № 666666. В поле «Номер квитанции» вводим «220811666666». К сожалению, по не знанию 2 дня потеряла на ожидание, прежде чем оператор проконсультировала.

Аватара пользователя
O_K
новичок
 
Сообщения: 28
Фото: 0
Регистрация: 08.07.2010
Город: Пермь
Благодарил (а): 44 раз.
Поблагодарили: 0 раз.
Возраст: 41
Страны: 16
Пол: Женский
  • Фотография пользователя
  • Подписаться на пользователя O_K

Re: Перемены в системе подаче заявлений на визу США с 1.8.20

Сообщение O_K » 24 авг 2011, 18:37

При записи на собеседование:
1.Applicants who reapply within 11 months after their previous visa expiration and who previously submitted ten fingerprints.

2.Applicants who apply for a visa in the same visa classification as their previous visa.

3.Applicants who apply in their country of usual residence.

4.Applicant’s prior visa does not have Clearance Received annotated on it.

5.Applicants who comply with US immigration laws and regulations.

Как оказалось совсем проигнорировать эти вопросы нельзя. Оператор проконсультировала, что для впервые получающих визу как минимум надо отметить пункты 3 и 5. Т.е. подача заявления происходит в России от гражданина РФ, и этот гражданин соответствует иммиграционным законам и правилам США.

Аватара пользователя
O_K
новичок
 
Сообщения: 28
Фото: 0
Регистрация: 08.07.2010
Город: Пермь
Благодарил (а): 44 раз.
Поблагодарили: 0 раз.
Возраст: 41
Страны: 16
Пол: Женский
  • Фотография пользователя
  • Подписаться на пользователя O_K

Re: Перемены в системе подаче заявлений на визу США с 1.8.20

Сообщение XMember » 24 авг 2011, 18:37

Melanty писал(а) 24 авг 2011, 18:08:Проходила собеседование в пятницу 19.08 в СПБ, виза B1/2 категории первый раз, 2 минуты все длилось, справку с работы НЕ посмотрели, приглашение НЕ посмотрели, старый паспорт НЕ посмотрели, вообще ничего НЕ спросили кроме русского паспорта, в нем посмотрели только штамп о браке, и спросили чем муж занимается, потом сказали 2-3 дня и паспорт с визой можно в пони забрать, я крайне удивлена, после того сколько бумаг собирала в Англ. посольство, здесь вообще ничего не понадобилось.

Я крайне удивлён, что люди форум не читают, а потом удивляются, что незачем столько макулатуры было собирать

Аватара пользователя
XMember
абсолютный путешественник
 
Сообщения: 17524
Фото: 60
Регистрация: 25.03.2008
Город: Москва
Благодарил (а): 579 раз.
Поблагодарили: 1236 раз.
Возраст: 34
Страны: 60
Пол: Мужской

Re: Перемены в системе подаче заявлений на визу США с 1.8.20

Сообщение Oleguss » 25 авг 2011, 11:04

O_K писал(а) 24 авг 2011, 18:37:При записи на собеседование:
1.Applicants who reapply within 11 months after their previous visa expiration and who previously submitted ten fingerprints.

2.Applicants who apply for a visa in the same visa classification as their previous visa.

3.Applicants who apply in their country of usual residence.

4.Applicant’s prior visa does not have Clearance Received annotated on it.

5.Applicants who comply with US immigration laws and regulations.

Как оказалось совсем проигнорировать эти вопросы нельзя. Оператор проконсультировала, что для впервые получающих визу как минимум надо отметить пункты 3 и 5. Т.е. подача заявления происходит в России от гражданина РФ, и этот гражданин соответствует иммиграционным законам и правилам США.

я игнорировал вопросы полностью и все прошло, получал впервые.

Oleguss
участник
 
Сообщения: 53
Регистрация: 20.07.2011
Город: Москва
Благодарил (а): 2 раз.
Поблагодарили: 5 раз.
Возраст: 50
Пол: Мужской

Re: Перемены в системе подаче заявлений на визу США с 1.8.20

Сообщение Chidi » 25 авг 2011, 12:45

сегодня отзвонились из Пони…паспорт у них
было повторное получение…сдал всё в пони 8.08…
итого 17 дней имейте ввиду (да, паспорта жены пока нет…сдавались вместе)

Аксиома Коула: Общая сумма разума на планете — величина постоянная, а население растет…

Аватара пользователя
Chidi
активный участник
 
Сообщения: 651
Регистрация: 10.12.2008
Город: Москва
Благодарил (а): 12 раз.
Поблагодарили: 26 раз.
Возраст: 49
Страны: 83
Пол: Мужской
  • Фотография пользователя

    снег…внезапно…Байдары

  • Подписаться на пользователя Chidi


Re: Перемены в системе подаче заявлений на визу США с 1.8.20

Сообщение Chidi » 25 авг 2011, 15:52

Melanty писал(а) 25 авг 2011, 14:58:Ого так долго, а мне офицер сказал 2-3 дня. Неделю уже жду.

еще раз….повторное получение….
без общения с офицером

Аксиома Коула: Общая сумма разума на планете — величина постоянная, а население растет…

Аватара пользователя
Chidi
активный участник
 
Сообщения: 651
Регистрация: 10.12.2008
Город: Москва
Благодарил (а): 12 раз.
Поблагодарили: 26 раз.
Возраст: 49
Страны: 83
Пол: Мужской
  • Фотография пользователя

    снег…внезапно…Байдары

  • Подписаться на пользователя Chidi





Re: Перемены в системе подаче заявлений на визу США с 1.8.20

Сообщение ViVerna » 26 авг 2011, 16:34

katen писал(а) 26 авг 2011, 16:08:Спасибо
Значит от формата ввода ничего не зависит, что несомненно радует))

У меня просто номер не проходил. А вот с датой — прошло.

ViVerna
полноправный участник
 
Сообщения: 463
Регистрация: 30.09.2008
Город: Тюмень
Благодарил (а): 36 раз.
Поблагодарили: 19 раз.
Возраст: 40
Страны: 21
Отчеты: 1
Пол: Женский

Re: Перемены в системе подаче заявлений на визу США с 1.8.20

Сообщение azpathel » 26 авг 2011, 20:01

RU писал(а) 09 авг 2011, 17:51:1.Applicants who reapply within 11 months after their previous visa expiration and who previously submitted ten fingerprints.
Податели, подающие повторно в теч 11 мес с момента прошлой подачи и кто сдавал отпечатки 10 пальцев.

2.Applicants who apply for a visa in the same visa classification as their previous visa.
Податели, которые подают на тот же тип визы, что и прошлый раз.

3.Applicants who apply in their country of usual residence.
Податели, которые подают в стране их обычного проживания.

4.Applicant’s prior visa does not have Clearance Received annotated on it.
Прошлая виза подателя не имеет записи «Clearance Received», относящаяся к этой визе.
(Штампик «Clearance Received» означает прохождение доп.административной проверки — для научных и медицинских работников, выезжающих для работы в определенных областях науки; это касается также тех, кто участвует в научных конференциях и консультациях и других видах научной деятельности).

5.Applicants who comply with US immigration laws and regulations.
Податели, которые соответствуют иммиграционным законам и правилам США.

Я правильно понимаю, что если визы не было, то 3и 5ый пункт ставим галочки?? или пятый не нужно?

azpathel
полноправный участник
 
Сообщения: 308
Регистрация: 27.05.2010
Город: Москва
Благодарил (а): 10 раз.
Поблагодарили: 2 раз.
Возраст: 43
Страны: 42
Пол: Женский

Re: Перемены в системе подаче заявлений на визу США с 1.8.20

Сообщение azpathel » 26 авг 2011, 20:11

и еще вопрос:
вот смотрите, я верно поняла все:
1. Регистриуемся на

http://cgifederal.force.com/

2. Заполняем ДС160 как было раньше,
3. назначаем интервью, логинясь в п.1?

а оплата когда? и еще — почему-то открывается пустая какая-то платежка, а реквизиты откуда брать?:(

azpathel
полноправный участник
 
Сообщения: 308
Регистрация: 27.05.2010
Город: Москва
Благодарил (а): 10 раз.
Поблагодарили: 2 раз.
Возраст: 43
Страны: 42
Пол: Женский

Re: Перемены в системе подаче заявлений на визу США с 1.8.20

Сообщение tuz555 » 26 авг 2011, 20:50

SilverRD писал(а) 24 авг 2011, 07:47:Подскажите пожалуйста, если подаются муж и жена- то назначать собеседование нужно каждому отдельно( на одно время) или достаточно на старшего назначить?)

Записывал себя и жену на собеседование по телефону (ибо через сайт не получалось), при этом пришлось именно настоять на том, чтоб на собеседование записали двоих в один день и время (пытались операторы доказать мне, что висячий лучше стоячего и, что система не позволяет мужа и жену, претендующих на получение визы В2, записать двоём)! Видимо, девочка неопытная или недалёкая попалась в колл-центре.

tuz555
новичок
 
Сообщения: 9
Регистрация: 13.09.2010
Город: Москва
Благодарил (а): 1 раз.
Поблагодарили: 0 раз.
Возраст: 48
Пол: Мужской

Re: Перемены в системе подаче заявлений на визу США с 1.8.20

Сообщение Chudo70 » 26 авг 2011, 21:12

Весь порядок расписан на официальном сайте:

http://www.ustraveldocs.com/ru_ru/ru-niv-visaapply.asp

Этап 1
Уплатите консульский сбор.
Этап 2
Заполните электронное заявление о выдаче неиммиграционной визы (формаDS-160).
Этап 3
Запишитесь на собеседование на этой странице. Для записи на собеседование необходимо представить сведения о номерах следующих трех документов:
— Номер заграничного паспорта.
— Номер квитанции (или иного документа) об уплате консульского сбора.
— Десятизначный номер штрихкода со страницы подтверждения подачи заявления DS-160.
Этап 4
Придите на собеседование в посольство или консульство США в назначенный день и час. Возьмите с собой распечатку письма с приглашением на собеседование, страницу подтверждения подачи заявления DS-160, одну недавно сделанную фотографию, действующий заграничный паспорт и все ранее выданные Вам заграничные паспорта. При отсутствии указанных выше документов заявление о выдаче визы не принимается.

azpathel писал(а) 26 авг 2011, 20:11:и еще — почему-то открывается пустая какая-то платежка, а реквизиты откуда брать?:(

Платежка открывается заполненная, вы в нее вбиваете только ФИО и адрес. Скорее всего вам надо обновить программу Adobe Reader или использовать другой браузер.

Chudo70
абсолютный путешественник
 
Сообщения: 15839
Фото: 238
Регистрация: 27.11.2010
Город: Майами
Благодарил (а): 111 раз.
Поблагодарили: 1762 раз.
Возраст: 52
Страны: 17
Отчеты: 1
Пол: Женский
  • Фотография пользователя
  • Подписаться на пользователя Chudo70

Re: Перемены в системе подаче заявлений на визу США с 1.8.20

Сообщение Chudo70 » 26 авг 2011, 21:23

azpathel писал(а) 26 авг 2011, 20:01: Я правильно понимаю, что если визы не было, то 3и 5ый пункт ставим галочки?? или пятый не нужно?

Логично отметить пункты 3 и 5.
Но этот раздел больше для тех, кто подходит под критерии подачи без собеседования. На форуме есть примеры, когда ни одного пункта не отметили и визу получили.

Chudo70
абсолютный путешественник
 
Сообщения: 15839
Фото: 238
Регистрация: 27.11.2010
Город: Майами
Благодарил (а): 111 раз.
Поблагодарили: 1762 раз.
Возраст: 52
Страны: 17
Отчеты: 1
Пол: Женский
  • Фотография пользователя
  • Подписаться на пользователя Chudo70

Re: Перемены в системе подаче заявлений на визу США с 1.8.20

Сообщение XMember » 26 авг 2011, 22:43

Вопросы по заполнению анкеты (DS-160) задаём в Вопросы и ответы по заполнению анкет на визу США
Здесь это оффтопик, т.к. её заполнение никак не связано с августовскими новшествами.

Аватара пользователя
XMember
абсолютный путешественник
 
Сообщения: 17524
Фото: 60
Регистрация: 25.03.2008
Город: Москва
Благодарил (а): 579 раз.
Поблагодарили: 1236 раз.
Возраст: 34
Страны: 60
Пол: Мужской

Re: Перемены в системе подаче заявлений на визу США с 1.8.20

Сообщение Warum » 27 авг 2011, 01:02

3 раза пыталась записаться на собеседование, но все три раза выдал ошибку с такой фомулировкой «Ошибка. Ошибка загрузки страницы Visualforce.» Заходила и с IE и Opera. Кто-нибудь сталкивался? в чем может быть причина? ждать до пн, чтоб записаться по телефону, так не хочется…

Warum
новичок
 
Сообщения: 24
Регистрация: 18.05.2010
Город: Москва
Благодарил (а): 6 раз.
Поблагодарили: 0 раз.
Возраст: 38
Страны: 6
Пол: Женский



Список форумов ‹ АМЕРИКА форум ‹ США форум ‹ Виза в США 2023 : получение американской визы

© Форум Винского является зарегистрированным товарным знаком Винского С.В. Все права защищены и охраняются законом. Свободное некоммерческое использование материалов FORUM.AWD.RU в интернете, полное или частичное, допускается при условии указания авторства FORUM.AWD.RU и активной ссылки на forum.awd.ru, обязательной для каждого взятого текста. Во всех остальных случаях требуется письменное разрешение Винского.

Понравилась статья? Поделить с друзьями:
  • Ошибка загрузки страницы mag 250
  • Ошибка загрузки страницы 502
  • Ошибка загрузки служба easyanticheat не установлена
  • Ошибка загрузки скриптов
  • Ошибка загрузки пакета pro utorrent ошибка 400