<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArchiCAD Python Palette: 187 Record Limit with FileMaker API in Archicad Python API</title>
    <link>https://community.graphisoft.com/t5/Archicad-Python-API/ArchiCAD-Python-Palette-187-Record-Limit-with-FileMaker-API/m-p/663321#M1091</link>
    <description>&lt;H2&gt;Problem Summary&lt;/H2&gt;&lt;P&gt;When using ArchiCAD's Python Palette to create records in FileMaker via the Data API (using&amp;nbsp;fmrest), record creation consistently stops at exactly&amp;nbsp;&lt;STRONG&gt;187 records&lt;/STRONG&gt;, regardless of data size or content.&lt;/P&gt;&lt;H2&gt;Environment&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;ArchiCAD Version:&lt;/STRONG&gt;&amp;nbsp;27&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Python Library:&lt;/STRONG&gt;&amp;nbsp;fmrest&amp;nbsp;(FileMaker Data API)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FileMaker Server:&lt;/STRONG&gt;&amp;nbsp;21.1.1.12&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;OS:&lt;/STRONG&gt;&amp;nbsp;macOS 13.7.2 (22H313)&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;What Works &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;ArchiCAD Python API → Console/Excel:&lt;/STRONG&gt;&amp;nbsp;Can extract and write thousands of elements without issues&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;External Python → FileMaker:&lt;/STRONG&gt;&amp;nbsp;Can create unlimited records in FileMaker (tested with 1000+ records)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ArchiCAD Python API data extraction:&lt;/STRONG&gt;&amp;nbsp;Successfully processes 481+ elements from model&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;What Fails &lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt;&lt;/H2&gt;&lt;P&gt;&lt;STRONG&gt;ArchiCAD Python Palette → FileMaker:&lt;/STRONG&gt;&amp;nbsp;Always stops at exactly 187 records, then&amp;nbsp;&lt;STRONG&gt;hangs indefinitely&lt;/STRONG&gt;&amp;nbsp;with loading icon, even with:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dummy data (no model interaction)&lt;/LI&gt;&lt;LI&gt;Individual record creation (fmrest.create_record())&lt;/LI&gt;&lt;LI&gt;Different batch sizes&lt;/LI&gt;&lt;LI&gt;Session recycling&lt;/LI&gt;&lt;LI&gt;Memory cleanup (gc.collect())&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Hanging Behavior:&lt;/STRONG&gt;&amp;nbsp;After creating exactly 187 records, the Python script continues showing the loading/execution icon in ArchiCAD but never completes or throws an error. The script must be manually stopped.&lt;/P&gt;&lt;H2&gt;Test Results&lt;/H2&gt;&lt;P&gt;Environment Data Source Record Count Result&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;External Python&lt;/TD&gt;&lt;TD&gt;Dummy data&lt;/TD&gt;&lt;TD&gt;1000+&lt;/TD&gt;&lt;TD&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Success&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ArchiCAD Palette&lt;/TD&gt;&lt;TD&gt;Model data (481 elements)&lt;/TD&gt;&lt;TD&gt;187&lt;/TD&gt;&lt;TD&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; Stops at 187, then hangs&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ArchiCAD Palette&lt;/TD&gt;&lt;TD&gt;Dummy data&lt;/TD&gt;&lt;TD&gt;187&lt;/TD&gt;&lt;TD&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; Stops at 87, then hangs&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ArchiCAD Palette&lt;/TD&gt;&lt;TD&gt;Model → Excel&lt;/TD&gt;&lt;TD&gt;481+&lt;/TD&gt;&lt;TD&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Success&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H2&gt;Hypothesis&lt;/H2&gt;&lt;P&gt;ArchiCAD's Python environment appears to have a&amp;nbsp;&lt;STRONG&gt;network connection or HTTP request limit&lt;/STRONG&gt;&amp;nbsp;of approximately 187 operations per script execution.&lt;/P&gt;&lt;H2&gt;Code Examples&lt;/H2&gt;&lt;H3&gt;Test 1: Dummy Data (Fails at 187)&lt;/H3&gt;&lt;PRE&gt;# Run inside ArchiCAD Python Palette
import fmrest

def test_dummy_records():
    fms = fmrest.Server(
        url="&lt;A href="https://your-server/" target="_blank" rel="noopener"&gt;https://your-server&lt;/A&gt;",
        user="admin",
        password="password",
        database="testdb",
        layout="testlayout",
        verify_ssl=False
    )
    
    fms.login()
    created = 0
    
    # Try to create 500 dummy records
    for i in range(500):
        try:
            record = {'ElementID': f'TEST_{i:03d}'}
            fms.create_record(record)
            created += 1
            if created % 50 == 0:
                print(f"Created {created} records")
        except Exception as e:
            print(f"Failed at record {created + 1}: {e}")
            break
    
    fms.logout()
    print(f"Final count: {created}")  # Always shows 187

test_dummy_records()&lt;/PRE&gt;&lt;H3&gt;Test 2: External Python (Works for 500+)&lt;/H3&gt;&lt;PRE&gt;# Run outside ArchiCAD in regular Python
import fmrest

def test_external():
    fms = fmrest.Server(
        url="&lt;A href="https://your-server/" target="_blank" rel="noopener"&gt;https://your-server&lt;/A&gt;",
        user="admin", 
        password="password",
        database="testdb",
        layout="testlayout",
        verify_ssl=False
    )
    
    fms.login()
    created = 0
    
    # Create 500 records - works fine
    for i in range(500):
        record = {'ElementID': f'EXTERNAL_{i:03d}'}
        fms.create_record(record)
        created += 1
    
    fms.logout()
    print(f"External created: {created}")  # Shows 500

test_external()&lt;/PRE&gt;&lt;H3&gt;Test 3: ArchiCAD Data Extraction (Works)&lt;/H3&gt;&lt;PRE&gt;# Run inside ArchiCAD Python Palette
from archicad import ACConnection

def test_archicad_extraction():
    conn = ACConnection.connect()
    acc = conn.commands
    act = conn.types
    acu = conn.utilities
    
    elements = acc.GetElementsByType('Wall')
    print(f"Found {len(elements)} elements")  # Shows full count (e.g., 481)
    
    # This works fine for any number of elements
    propertyIds = acc.GetPropertyIds([
        act.BuiltInPropertyUserId("General_ElementID")
    ])
    
    props = acu.GetPropertyValuesDictionary(elements, propertyIds)
    print(f"Processed {len(props)} properties")  # Shows full count

test_archicad_extraction()&lt;/PRE&gt;&lt;H2&gt;Questions&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Is there a documented network request limit&lt;/STRONG&gt;&amp;nbsp;in ArchiCAD's Python environment?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Are there configuration options&lt;/STRONG&gt;&amp;nbsp;to increase this limit?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Is this a security feature&lt;/STRONG&gt;&amp;nbsp;or architectural limitation?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Are there recommended workarounds&lt;/STRONG&gt;&amp;nbsp;for bulk data operations with external APIs?&lt;/LI&gt;&lt;LI&gt;Is the issue something else entirely or am I missing anything crucial?&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;Workaround (Currently Using)&lt;/H2&gt;&lt;P&gt;Extract data within ArchiCAD → Save to file → Process externally:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use ArchiCAD Python Palette to extract model data&lt;/LI&gt;&lt;LI&gt;Save data to Excel file&lt;/LI&gt;&lt;LI&gt;Run separate external Python script to process FileMaker records&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This workaround successfully processes all records but requires two-step process instead of direct integration.&lt;/P&gt;&lt;H2&gt;Request&lt;/H2&gt;&lt;P&gt;Do you know whether this 187 record limit is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Intentional&lt;/STRONG&gt;&amp;nbsp;(and if so, how to work with it)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;A bug&lt;/STRONG&gt;&amp;nbsp;(and if so, when it might be fixed)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Configurable&lt;/STRONG&gt;&amp;nbsp;(and if so, where the setting is located)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you for any insights or solutions!&lt;/P&gt;</description>
    <pubDate>Thu, 22 May 2025 13:42:20 GMT</pubDate>
    <dc:creator>dimitris</dc:creator>
    <dc:date>2025-05-22T13:42:20Z</dc:date>
    <item>
      <title>ArchiCAD Python Palette: 187 Record Limit with FileMaker API</title>
      <link>https://community.graphisoft.com/t5/Archicad-Python-API/ArchiCAD-Python-Palette-187-Record-Limit-with-FileMaker-API/m-p/663321#M1091</link>
      <description>&lt;H2&gt;Problem Summary&lt;/H2&gt;&lt;P&gt;When using ArchiCAD's Python Palette to create records in FileMaker via the Data API (using&amp;nbsp;fmrest), record creation consistently stops at exactly&amp;nbsp;&lt;STRONG&gt;187 records&lt;/STRONG&gt;, regardless of data size or content.&lt;/P&gt;&lt;H2&gt;Environment&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;ArchiCAD Version:&lt;/STRONG&gt;&amp;nbsp;27&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Python Library:&lt;/STRONG&gt;&amp;nbsp;fmrest&amp;nbsp;(FileMaker Data API)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FileMaker Server:&lt;/STRONG&gt;&amp;nbsp;21.1.1.12&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;OS:&lt;/STRONG&gt;&amp;nbsp;macOS 13.7.2 (22H313)&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;What Works &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;ArchiCAD Python API → Console/Excel:&lt;/STRONG&gt;&amp;nbsp;Can extract and write thousands of elements without issues&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;External Python → FileMaker:&lt;/STRONG&gt;&amp;nbsp;Can create unlimited records in FileMaker (tested with 1000+ records)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ArchiCAD Python API data extraction:&lt;/STRONG&gt;&amp;nbsp;Successfully processes 481+ elements from model&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;What Fails &lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt;&lt;/H2&gt;&lt;P&gt;&lt;STRONG&gt;ArchiCAD Python Palette → FileMaker:&lt;/STRONG&gt;&amp;nbsp;Always stops at exactly 187 records, then&amp;nbsp;&lt;STRONG&gt;hangs indefinitely&lt;/STRONG&gt;&amp;nbsp;with loading icon, even with:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dummy data (no model interaction)&lt;/LI&gt;&lt;LI&gt;Individual record creation (fmrest.create_record())&lt;/LI&gt;&lt;LI&gt;Different batch sizes&lt;/LI&gt;&lt;LI&gt;Session recycling&lt;/LI&gt;&lt;LI&gt;Memory cleanup (gc.collect())&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Hanging Behavior:&lt;/STRONG&gt;&amp;nbsp;After creating exactly 187 records, the Python script continues showing the loading/execution icon in ArchiCAD but never completes or throws an error. The script must be manually stopped.&lt;/P&gt;&lt;H2&gt;Test Results&lt;/H2&gt;&lt;P&gt;Environment Data Source Record Count Result&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;External Python&lt;/TD&gt;&lt;TD&gt;Dummy data&lt;/TD&gt;&lt;TD&gt;1000+&lt;/TD&gt;&lt;TD&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Success&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ArchiCAD Palette&lt;/TD&gt;&lt;TD&gt;Model data (481 elements)&lt;/TD&gt;&lt;TD&gt;187&lt;/TD&gt;&lt;TD&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; Stops at 187, then hangs&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ArchiCAD Palette&lt;/TD&gt;&lt;TD&gt;Dummy data&lt;/TD&gt;&lt;TD&gt;187&lt;/TD&gt;&lt;TD&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; Stops at 87, then hangs&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ArchiCAD Palette&lt;/TD&gt;&lt;TD&gt;Model → Excel&lt;/TD&gt;&lt;TD&gt;481+&lt;/TD&gt;&lt;TD&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Success&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H2&gt;Hypothesis&lt;/H2&gt;&lt;P&gt;ArchiCAD's Python environment appears to have a&amp;nbsp;&lt;STRONG&gt;network connection or HTTP request limit&lt;/STRONG&gt;&amp;nbsp;of approximately 187 operations per script execution.&lt;/P&gt;&lt;H2&gt;Code Examples&lt;/H2&gt;&lt;H3&gt;Test 1: Dummy Data (Fails at 187)&lt;/H3&gt;&lt;PRE&gt;# Run inside ArchiCAD Python Palette
import fmrest

def test_dummy_records():
    fms = fmrest.Server(
        url="&lt;A href="https://your-server/" target="_blank" rel="noopener"&gt;https://your-server&lt;/A&gt;",
        user="admin",
        password="password",
        database="testdb",
        layout="testlayout",
        verify_ssl=False
    )
    
    fms.login()
    created = 0
    
    # Try to create 500 dummy records
    for i in range(500):
        try:
            record = {'ElementID': f'TEST_{i:03d}'}
            fms.create_record(record)
            created += 1
            if created % 50 == 0:
                print(f"Created {created} records")
        except Exception as e:
            print(f"Failed at record {created + 1}: {e}")
            break
    
    fms.logout()
    print(f"Final count: {created}")  # Always shows 187

test_dummy_records()&lt;/PRE&gt;&lt;H3&gt;Test 2: External Python (Works for 500+)&lt;/H3&gt;&lt;PRE&gt;# Run outside ArchiCAD in regular Python
import fmrest

def test_external():
    fms = fmrest.Server(
        url="&lt;A href="https://your-server/" target="_blank" rel="noopener"&gt;https://your-server&lt;/A&gt;",
        user="admin", 
        password="password",
        database="testdb",
        layout="testlayout",
        verify_ssl=False
    )
    
    fms.login()
    created = 0
    
    # Create 500 records - works fine
    for i in range(500):
        record = {'ElementID': f'EXTERNAL_{i:03d}'}
        fms.create_record(record)
        created += 1
    
    fms.logout()
    print(f"External created: {created}")  # Shows 500

test_external()&lt;/PRE&gt;&lt;H3&gt;Test 3: ArchiCAD Data Extraction (Works)&lt;/H3&gt;&lt;PRE&gt;# Run inside ArchiCAD Python Palette
from archicad import ACConnection

def test_archicad_extraction():
    conn = ACConnection.connect()
    acc = conn.commands
    act = conn.types
    acu = conn.utilities
    
    elements = acc.GetElementsByType('Wall')
    print(f"Found {len(elements)} elements")  # Shows full count (e.g., 481)
    
    # This works fine for any number of elements
    propertyIds = acc.GetPropertyIds([
        act.BuiltInPropertyUserId("General_ElementID")
    ])
    
    props = acu.GetPropertyValuesDictionary(elements, propertyIds)
    print(f"Processed {len(props)} properties")  # Shows full count

test_archicad_extraction()&lt;/PRE&gt;&lt;H2&gt;Questions&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Is there a documented network request limit&lt;/STRONG&gt;&amp;nbsp;in ArchiCAD's Python environment?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Are there configuration options&lt;/STRONG&gt;&amp;nbsp;to increase this limit?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Is this a security feature&lt;/STRONG&gt;&amp;nbsp;or architectural limitation?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Are there recommended workarounds&lt;/STRONG&gt;&amp;nbsp;for bulk data operations with external APIs?&lt;/LI&gt;&lt;LI&gt;Is the issue something else entirely or am I missing anything crucial?&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;Workaround (Currently Using)&lt;/H2&gt;&lt;P&gt;Extract data within ArchiCAD → Save to file → Process externally:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use ArchiCAD Python Palette to extract model data&lt;/LI&gt;&lt;LI&gt;Save data to Excel file&lt;/LI&gt;&lt;LI&gt;Run separate external Python script to process FileMaker records&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This workaround successfully processes all records but requires two-step process instead of direct integration.&lt;/P&gt;&lt;H2&gt;Request&lt;/H2&gt;&lt;P&gt;Do you know whether this 187 record limit is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Intentional&lt;/STRONG&gt;&amp;nbsp;(and if so, how to work with it)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;A bug&lt;/STRONG&gt;&amp;nbsp;(and if so, when it might be fixed)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Configurable&lt;/STRONG&gt;&amp;nbsp;(and if so, where the setting is located)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you for any insights or solutions!&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 13:42:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-Python-API/ArchiCAD-Python-Palette-187-Record-Limit-with-FileMaker-API/m-p/663321#M1091</guid>
      <dc:creator>dimitris</dc:creator>
      <dc:date>2025-05-22T13:42:20Z</dc:date>
    </item>
  </channel>
</rss>

