Меню

Report builder код ошибки

Ways you can optimize report builder delivery, and a list of error messages that could occur occasionally.

Report Builder 5.0 users and opening 5.1 workbooks

Adobe changed the separator between dimensions and classifications from an underscore character (_) to ||. This change has compatibility implications for a Report Builder 5.0 user who opens a Report Builder v5.1 workbook with classification requests. Each time a workbook from a version older than v5.1 is opened, all its serialized classifications requests will be converted to this format.

This introduces a forward compatibility problem: Once converted to v5.1, if a workbook is shared with a user on Report Builder v5.0, that user will not be able to recognize the classification request (indeed, it is looking for “_” but v5.1 serialized “||”).

You will experience the following side effect when opening a ARB v5.1 workbook with classification request:

  • When opening the workbook, you will get the following warning: “This workbook was last saved using Report Builder v5.1. This version has introduced some features that are incompatible with the Report Builder version installed on this computer. It is highly recommended that you upgrade to the latest Report Builder version before updating this workbook.”
  • If you right-click an ARB request with classification, the Report Builder context menus (edit request, add dependent request…) will not show up.
  • If you perform a Refresh All, by clicking the third button, or by refreshing a set of requests from the Request Manager form, the classification request will execute without error. However, the classifications values will not be written out.
  • You can still edit the request by opening the Request Manager, then going from row to row, until it reaches the right request.
  • If you edit the request and leave all parameters the same and then click Finish, the response will be properly written out. Indeed, editing the request resolves the problem as the Response Layout parameters are re-serialized. So there is a workaround, although it is time consuming.

Authentication issues in Report Builder

Report Builder requires authentication to create data requests from your report suites. Sometimes there are issues logging in to report builder depending on your settings within Analytics or your network.

  • Invalid Login Company: This error most commonly occurs when either the login company is improperly entered, or if there are network activity issues. Do the following:
    • Check the login company spelling to ensure that there is not a typo or an errant space.
    • Log in to Analytics with the same login company to ensure that it is correct. If you are not able to log in with those credentials, contact one of your organization’s administrators to obtain the correct login company.
  • Firewall: Report Builder uses ports 80 and 443. Ensure that these ports are allowed through your organization’s firewall. See also Adobe’s Internal IP Addresses for additional firewall exclusions.

Recommendations for optimizing requests

The following factors can increase request complexity and result in slower processing.

  • Factors that can slow down deliveries: Too many bookmarks, dashboards, and Report Builder workbooks were scheduled within a few hours. Also consider too many Report Builder workbooks were scheduled at around the same time. When this occurs, the report API queue becomes backlogged.

  • Factors that can slow down workbook runtime: Significant increase in classifications, or increasing the request date range over time.

  • Causes that result in workbook delivery failure: Complex Excel formulas in a workbook, particularly ones that involve date and time.

  • Cells returning 0s (no values): An apostrophe or single quote in the Excel sheet name will cause report builder to return no values. (This is a Microsoft Excel limitation.)

  • Individual request performance: Processing speed can be affected by the following settings:

    Setting Faster Performance Slower Performance
    Breakdowns and the breakdown order Few Many
    Example: If you break down A by Z, the number of items for A should always be less than the number of items for Z. If it is the other way around, the request time can increase significantly.
    Date range Small range Wide range
    Filtering Specific filtering Most Popular filtering
    Granularity Aggregated Hourly

    • Daily
    • Weekly
    • Monthly
    • Quarterly
    • Yearly
    Number of entries Small data set Large data set
  • Scheduling time: Stagger scheduling over 24-hour period (see table below). Existing bookmarks , dashboards, and Report Builder workbooks scheduled close together may cause delays. Schedule larger, more complex requests in the early morning to allow for manual pulls and refreshing to occur during the business day.

    Scheduling Time 1 a.m. — 2 a.m. 2 a.m. — 7 a.m. 7 a.m. — 6 p.m. 6 p.m. — Midnight
    Report Builder usage Quiet Very busy Client-side usage.
    Higher volumes of users refreshing locally and requesting to “Send immediately.”
    Additionally, verify whether the API queue is cleared when scheduled workbooks time out.
    Not busy
  • Timeouts: Any scheduled report times out after four hours. The system attempts scheduling three more times, potentially resulting in a failure. (Generally, the larger the data set the longer it takes to run.) These can be seen in Analytics reporting and Report Builder:

Error message descriptions

A list of error messages that could occur occasionally while you are using Report Builder.

NOTE

This is only a selection of error messages, and not an exhaustive list. For more information about resolving errors, contact your administrator.

  • This feature can only be applied on an open workbook.: If no workbooks (spreadsheet documents) are open in Excel, and you click one of the icons in the report builder toolbar, this message is displayed. In addition, the toolbar becomes disabled until you open a spreadsheet. However, you can click the on-line help icon while the toolbar is still enabled without causing this error.
  • You first need to exit the Request Wizardbefore activating the Request Manager.: While the Request Manager and the Request Wizard are linked functionally, it is not possible to start working with the Request Manager before completing or cancelling actions taken in the Request Wizard.
  • There is no request associated with this range.: This error message occurs if you click on the From Sheet button in the Request Manager when a cell of the spreadsheet contains no requests. To identify which cells in the spreadsheet contain requests, click individual requests listed in the table in the Request Manager. If a request is associated with cells, the cells will show up highlighted when the request is selected in the table.
  • The selected Range is not valid. Please select another Range.: If a cell of the spreadsheet is selected and already has a request mapped to it, this error occurs. Either delete the request mapped to the cells or choose another range of cells to map. When you want to delete cells, it is important to locate cells containing requests and delete the request before deleting the cells (removing rows or columns).
  • Please Exit the Excel Cell with focus before using this feature.: If you are in edit mode in an Excel cell and click one of the Report Builder icons, this error message appears. Edit mode in an Excel cell means that the cell is selected and the cursor appears inside the cell. You are also in edit mode in an Excel cell when you type directly into the Formula bar or into the Name Box at the top of Excel.
  • The range selected intersects another request’s range. Please change your selection.: If you have already mapped a set of cells to the spreadsheet, this error is displayed.
  • Repairs to workbook (Removed Records: Formula from /xl/calcChain.xml part): Sometimes a workbook’s formulas get corrupted when saving or transferring. When the file is opened, Excel tries to run these formulas and fails. You can resolve this issue by removing calcChain.xml from the spreadsheet, forcing Excel to refresh its formula calculations.
    1. Rename the workbook’s file extension from .xlsx to .zip.
    2. Unzip the contents and open the /xl/ folder.
    3. Delete calcChain.xml.
    4. Re-zip the contents, and change the file extension back to .xlsx.
    5. Open the workbook in Excel and refresh all Report Builder requests.
  • Excel cells associated with the input filters or output range may have been deleted: Report Builder uses Excel Names to attach data requests to cells. If you delete Excel Names from the Names Manager, you can see this error. Requests cannot be recovered if Excel Names are deleted. If the workbook was scheduled, you can either download a copy from the Scheduling Manager, or open previously delivered copies of the workbook.

Business.Adobe.com resources

Docs links

How do I export a report with code calculated values in the cells?

I am trying to correlate values in 2 datasets beyond the standard Report Builder functions. When I do so the report comes up fine, but when trying to export I get an #Error in the cell. For example:

Report:

Name

City Count

Joe Smith

6

After I choose Actions —> Export —> Word, TIFF, PDF I get this in the file. Excel gets #Value:

Name

City Count

Joe Smith

#Error

Here is code and function call:

= Code.MakeList(LookupSet(«», «», Fields!NamesFocus.Value, «MOV»), Fields!Name.Value, «Phoenix»)

Function MakeList (ByVal items As Object(), ByVal Name as String, ByVal Focus as String) As Integer

Dim Count as integer = 0

‘For each array of MOV dataset values

For Each item as Object In items

   
‘ If name occurs in this element, count # of times Focus occurs in it.

   
if instr(item, Name) > 0 Then

       
dim tmp as string = item.replace(Focus, «»)

       
‘Add to Count the # of times Focus occurs

       
Count = Count + (item.Length — tmp.Length) / Focus.Length

   
End if

Next

Return Count

End Function

  • Edited by

    Wednesday, November 6, 2013 10:54 PM

  • Changed type
    Charlie Liao
    Friday, November 8, 2013 8:47 AM

How do I export a report with code calculated values in the cells?

I am trying to correlate values in 2 datasets beyond the standard Report Builder functions. When I do so the report comes up fine, but when trying to export I get an #Error in the cell. For example:

Report:

Name

City Count

Joe Smith

6

After I choose Actions —> Export —> Word, TIFF, PDF I get this in the file. Excel gets #Value:

Name

City Count

Joe Smith

#Error

Here is code and function call:

= Code.MakeList(LookupSet(«», «», Fields!NamesFocus.Value, «MOV»), Fields!Name.Value, «Phoenix»)

Function MakeList (ByVal items As Object(), ByVal Name as String, ByVal Focus as String) As Integer

Dim Count as integer = 0

‘For each array of MOV dataset values

For Each item as Object In items

   
‘ If name occurs in this element, count # of times Focus occurs in it.

   
if instr(item, Name) > 0 Then

       
dim tmp as string = item.replace(Focus, «»)

       
‘Add to Count the # of times Focus occurs

       
Count = Count + (item.Length — tmp.Length) / Focus.Length

   
End if

Next

Return Count

End Function

  • Edited by

    Wednesday, November 6, 2013 10:54 PM

  • Changed type
    Charlie Liao
    Friday, November 8, 2013 8:47 AM

Надеюсь, мой заголовок достаточно ясен. Я работаю в MS Report Builder, используя функцию, которая применяет регулярное выражение к запрошенному значению, чтобы вернуть определенную подстроку. Регулярное выражение работает нормально, поэтому я продемонстрирую здесь более простую версию, чтобы сделать ее менее многословной. Вот суть моего уравнения:

= IIF (Len (Fields! CourtLocation.Value) <1, «none», System.Text.RegularExpressions.Regex.Match (Fields! CourtLocation.Value, «(?: [AZ] {2,4})»). Стоимость))

Основная цель — получить эту подстроку, но я добавил IIF, чтобы в тех случаях, когда CourtLocation.Value пуст (я также пробовал Is Nothing в своем выражении), функция возвращала «none», а не «#Error»

Я искал решение, но ничего не помогло; похоже, что большинство других людей, которые говорят об этом, используют математическое уравнение, а не пытаются получить строку. Может ли кто-нибудь помочь мне избавиться от этого дурацкого значения «#Error»?

2 ответа

Лучший ответ

Вы можете попробовать это (непроверено)

=System.Text.RegularExpressions.Regex.Match(
    IIF(
        Len(Fields!CourtLocation.Value) < 1,
        "none",
         Fields!CourtLocation.Value
        )
       , "(?:[A-Z]{2,4})"
      ).Value

Таким образом, IIF выполняется для строки, которую вы хотите передать функции регулярного выражения, поэтому она всегда получает допустимое значение для обработки


1

Alan Schofield
20 Авг 2020 в 15:31

Я пытаюсь сделать следующее:

Предоставьте список доступных значений для параметра. Пользователь может выбрать несколько значений или нет. Если в списке выбранных параметров существует определенное значение, укажите соответствующий столбец. Если нет, скройте столбец.

Для этого я написал пользовательскую функцию, которая принимает целое число, проверяет, существует ли это целое число в списке параметров, и выводит False/True, чтобы скрыть/показать столбец.

Примеры параметров:

Label          Value
Pallet 1
Item 2
.
.
.
nth-label n

Код: Report Builder 3.0 говорит, что у меня есть синтаксическая ошибка в строке 8, но я не уверен, что это может быть.

dim parm_array() as String
dim col_num as Integer
dim i as Integer

function hide_column (ByVal col_num as Integer) as Boolean
parm_array = Split(Join(Report.Parameters!show.Value,","), ",")
for i in LBound(parm_array) To UBound(parm_array)
if col_num = CInt(parm_array(i)) then
hide_column = 0
exit for
else
hide_column = 1
end if
next
end function

I have an issue when converting json reports.

Code:

ReportBuilder.configure do |config|
      config.report_title = 'test'
      config.report_types = %i[json]
      config.input_path = /path/to/the/report/folder
      config.json_report_path = final_report
    end
    ReportBuilder.build_report

report_builder 1.8
ruby 2.5.0
Example json file:
https://raw.githubusercontent.com/faceless7171/report_builder_bug/master/test.json
Error:

Traceback (most recent call last):
	8: from /home/user/project/auto-tests/runner.rb:210:in `<main>'
	7: from /home/user/project/auto-tests/runner.rb:57:in `run'
	6: from /var/lib/gems/2.5.0/gems/report_builder-1.8/lib/report_builder.rb:76:in `build_report'
	5: from /var/lib/gems/2.5.0/gems/report_builder-1.8/lib/report_builder/builder.rb:26:in `build_report'
	4: from /var/lib/gems/2.5.0/gems/report_builder-1.8/lib/report_builder/builder.rb:26:in `open'
	3: from /var/lib/gems/2.5.0/gems/report_builder-1.8/lib/report_builder/builder.rb:27:in `block in build_report'
	2: from /usr/lib/ruby/2.5.0/json/common.rb:286:in `pretty_generate'
	1: from /usr/lib/ruby/2.5.0/json/common.rb:286:in `generate'
/usr/lib/ruby/2.5.0/json/common.rb:286:in `encode': "x89" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)

It looks like by default cucumber using ASCII-8BIT encoding for image files attached to the report and report_builder is trying to decode it to the UTF-8.
Code from cucumber json formatter:

def embed(src, mime_type, _label)
        if File.file?(src)
          content = File.open(src, 'rb', &:read)
          data = encode64(content)
        else
          if mime_type =~ /;base64$/
            mime_type = mime_type[0..-8]
            data = src
          else
            data = encode64(src)
          end
        end
        test_step_embeddings << { mime_type: mime_type, data: data }
      end

File.open with b read mode:

"b"  |  Binary file mode (may appear with
     |  any of the key letters listed above).
     |  Suppresses EOL <-> CRLF conversion on Windows. And
     |  sets external encoding to ASCII-8BIT unless explicitly
     |  specified.

I have an issue when converting json reports.

Code:

ReportBuilder.configure do |config|
      config.report_title = 'test'
      config.report_types = %i[json]
      config.input_path = /path/to/the/report/folder
      config.json_report_path = final_report
    end
    ReportBuilder.build_report

report_builder 1.8
ruby 2.5.0
Example json file:
https://raw.githubusercontent.com/faceless7171/report_builder_bug/master/test.json
Error:

Traceback (most recent call last):
	8: from /home/user/project/auto-tests/runner.rb:210:in `<main>'
	7: from /home/user/project/auto-tests/runner.rb:57:in `run'
	6: from /var/lib/gems/2.5.0/gems/report_builder-1.8/lib/report_builder.rb:76:in `build_report'
	5: from /var/lib/gems/2.5.0/gems/report_builder-1.8/lib/report_builder/builder.rb:26:in `build_report'
	4: from /var/lib/gems/2.5.0/gems/report_builder-1.8/lib/report_builder/builder.rb:26:in `open'
	3: from /var/lib/gems/2.5.0/gems/report_builder-1.8/lib/report_builder/builder.rb:27:in `block in build_report'
	2: from /usr/lib/ruby/2.5.0/json/common.rb:286:in `pretty_generate'
	1: from /usr/lib/ruby/2.5.0/json/common.rb:286:in `generate'
/usr/lib/ruby/2.5.0/json/common.rb:286:in `encode': "x89" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)

It looks like by default cucumber using ASCII-8BIT encoding for image files attached to the report and report_builder is trying to decode it to the UTF-8.
Code from cucumber json formatter:

def embed(src, mime_type, _label)
        if File.file?(src)
          content = File.open(src, 'rb', &:read)
          data = encode64(content)
        else
          if mime_type =~ /;base64$/
            mime_type = mime_type[0..-8]
            data = src
          else
            data = encode64(src)
          end
        end
        test_step_embeddings << { mime_type: mime_type, data: data }
      end

File.open with b read mode:

"b"  |  Binary file mode (may appear with
     |  any of the key letters listed above).
     |  Suppresses EOL <-> CRLF conversion on Windows. And
     |  sets external encoding to ASCII-8BIT unless explicitly
     |  specified.

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Replace toner cartridge brother ошибка
  • Replace card battery рено меган 2 как убрать ошибку